package com.gitee.melin.bee.core.conf;

import org.apache.commons.lang3.StringUtils;

/**
 * @author melin 2021/6/19 10:23 下午
 */
public class StringArray {
    private final String[] values;

    private StringArray(String... values) {
        this.values = values;
    }

    public static StringArray of(String... values) {
        return new StringArray(values);
    }

    public String[] getValues() {
        return values;
    }

    @Override
    public String toString() {
        return StringUtils.join(values, ",");
    }
}
